import _fetch from './request'
function enterpriseList (params) {
  return _fetch({
    url: '/enterprise/list',
    method: 'get',
    params
  })
}
function setEnterpriseStatus (data) {
  return _fetch({
    url: '/enterprise/status',
    method: 'post',
    data
  })
}
function removeEnterpriseInfo (data) {
  return _fetch({
    url: '/enterprise/remove',
    method: 'post',
    data
  })
}
function addEnterpriseInfo (data) {
  return _fetch({
    url: '/enterprise/add',
    method: 'post',
    data
  })
}
function editEnterpriseInfo (data) {
  return _fetch({
    url: '/enterprise/edit',
    method: 'post',
    data
  })
}
export {
  enterpriseList,
  setEnterpriseStatus,
  removeEnterpriseInfo,
  addEnterpriseInfo,
  editEnterpriseInfo
}
